import java.io.Serializable;

/**
 * Description:
 * 联系人类 - 包含联系人基本属性和获取属性的公开方法
 * User:Jiali
 * Date:2022-08-06-15:45
 */
public class Person implements Serializable {
    private static final long serialVersionUID = -6849794470754667123L;

    private String name;
    private String gender;
    private int age;
    private String phoneNumber;
    private String notes;

    public Person() {
    }

    public Person(String name, String gender, int age, String phoneNumber, String notes) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.phoneNumber = phoneNumber;
        this.notes = notes;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getNotes() {
        return notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", gender='" + gender + '\'' +
                ", age=" + age +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", notes='" + notes + '\'' +
                '}';
    }

}

//class TestPerson{
//    public static void main(String[] args) {
//        Person person = new Person("zhangsan","male",18,"17786460000",null);
//        System.out.println(person);
//    }
//}